<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <img style="width: auto;max-width:780px;max-height: 400px;display: block;position: absolute;top: 50%;left: 50%;transform: translateX(-50%) translateY(-50%);" src="" alt="">
</body>
<script type="text/javascript" src="../../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script>
    $("img").attr("src",sessionStorage.getItem("imgUrl"))
//    setTimeout(function () {
//        $("img").css({
//            marginTop:-$("img").height()/2,
//            marginLeft:-$("img").width()/2,
//        })
//    },30)

</script>
</html>